package project;

public class Client
{
	private String clientId = "", password = "",
		idNum = "", lastName = "", firstName = "",
		title = "", address1 = "", address2 = "", 
		address3 = "", address4 = "", phone1 = "",
		phone2 = "", email = "", birthDate = "",
		joinDate = "", custStatus = "";
	private String initials;
	private double creditAmount;
	private String imagePath = "";
	String [] input;
		
	public Client(String [] inArray)
	{
		input = new String [18];
		
		for(int i = 0; i < input.length; i++)
		{
			input[i] = inArray[i];
		//	System.out.println(input[i]);

		}
		clientId = input[0];
		password = input[1];
		idNum = input[2];
		lastName = input[3];
		firstName = input[4];
		initials = input[5];
		title = input[6];
		address1 = input[7];
		address2 = input[8];
		address3 = input[9];
		address4 = input[10];
		phone1 = input[11];
		phone2 = input[12];
		email = input[13];
		birthDate = input[14];
		joinDate = input[15];
		imagePath = input[16];
		custStatus = input[17];
		
		creditAmount = 0;
	}
	public Client(String [] inArray, double creditAmount)
	{
			input = new String [18];
			
			for(int i = 0; i < input.length; i++)
			{
				input[i] = inArray[i];
			//	System.out.println(input[i]);

			}
			clientId = input[0];
			password = input[1];
			idNum = input[2];
			lastName = input[3];
			firstName = input[4];
			initials = input[5];
			title = input[6];
			address1 = input[7];
			address2 = input[8];
			address3 = input[9];
			address4 = input[10];
			phone1 = input[11];
			phone2 = input[12];
			email = input[13];
			birthDate = input[14];
			joinDate = input[15];
			imagePath = input[16];
			custStatus = input[17];

			this.creditAmount = creditAmount;
	}
	public String [] getClientAttrString()
	{
		return input;
	}
	public String getClientId()
	{
		return clientId;
	}
	public String getPassword()
	{
		return password;
	}
	public String getIdNum()
	{
		return idNum;
	}
	public String getLastName()
	{
		return lastName;
	}
	public String getFirstName()
	{
		return firstName;
	}
	public String getInitials()
	{
		return initials;
	}
	public String getTitle()
	{
		return title;
	}
	public String getAddress1()
	{
		return address1;
	}
	public String getAddress2()
	{
		if(address2.equals(null))
		{
			return "";
		}
		else
		{
			return address2;
		}
	}
	public String getAddress3()
	{
		if(address3.equals(null))
		{
			return "";
		}
		else
		{
			return address3;
		}
	}
	public String getAddress4()
	{
		if(address4.equals(null))
		{
			return "";
		}
		else
		{
			return address4;
		}
		
	}
	public String getPhone1()
	{
		return phone1;
	}
	public String getPhone2()
	{
		if(phone2.equals(null))
		{
			return "";
		}
		else
		{
			return phone2;
		}
	}
	public String getEmail()
	{
		if(email.equals(""))
		{
			return "";
		}
		else
		{
			return email;
		}
	}
	public String getBirthDate()
	{
		return birthDate;
	}
	public String getJoinDate()
	{
		return joinDate;
	}
	public String getCustStatus()
	{
		return custStatus;
	}
	public double getCreditAmount()
	{
		return creditAmount;
	}
	public String getImagePath()
	{
		return imagePath;
	}
	
	public void setPassword(String password)
	{
		this.password = password;
	}
	public void setIdNum(String idNum)
	{
		this.idNum = idNum;
	}
	public void setLastName(String lastName)
	{
		this.lastName = lastName;
	}
	public void setFirstName(String firstName)
	{
		this.firstName = firstName;
	}
	public void setInitials(String initials)
	{
		this.initials = initials;
	}
	public void setTitle(String title)
	{
		this.title = title;
	}
	public void setAddress1(String address1)
	{
		this.address1 = address1;
	}
	public void setAddress2(String address2)
	{
		this.address2 = address2;
	}
	public void setAddress3(String address3)
	{
		this.address3 = address3;
	}
	public void setAddress4(String address4)
	{
		this.address4 = address4;
	}
	public void setPhone1(String phone1)
	{
		this.phone1 = phone1;
	}
	public void setPhone2(String phone2)
	{
		this.phone2 = phone2;
	}
	public void setEmail(String email)
	{
		this.email = email;
	}
	public void setBirthDate(String birthDate)
	{
		this.birthDate = birthDate;
	}
	public void setCustStatus(String custStatus)
	{
		this.custStatus = custStatus;
	}
	public void setCreditAmount(double creditAddition)
	{
		creditAmount = creditAmount + creditAddition;
	}
	public void setImagePath(String imagePath)
	{
		this.imagePath = imagePath;
	}
	public void setClientId(String clientId)
	{
		this.clientId = clientId;
	}
}